/*
 * GPS_RoadLockHandle.c
 *
 *  Created on: 2015-10-19
 *      Author: Administrator
 */

#include "GPS_RoadLockHandle.h"
#include "MxxTimer.h"
#include "GPS_Location_Handle.h"


//change MyInfo.RoadLocked and MyInfo.LockedRoadIndex according to index
//when index is 0, quit lock state.
#pragma CODE_SECTION(RoadLockTo, "FuncsMap2H0SARam")
void RoadLockTo(Uns index)
{
	MyInfo.LockedRoadIndex=index;
	if(index)
	{
		//road lock
		MyInfo.RoadLocked = ROAD_LOCKED;//ROAD_LOCKED(0x55)
	}
	else
	{
		MyInfo.RoadLocked = 0;
	}
}


